﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace Jack.RedisEventBus
{
    /// <summary>
    /// 事件处理（用于标记事件处理者）
    /// </summary>
    /// <typeparam name="TEvent">事件</typeparam>
    public interface IEventHandle<TEvent> : IEventHandle where TEvent : IEvent 
    {
    }

    /// <summary>
    /// 事件处理（用于获取事件处理者）
    /// </summary>
    public interface IEventHandle
    {
        Task EventHandle(EventData eventData);
    }
}
